/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.store.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.store.dao.StoreAreaDao;
import com.thinkgem.jeesite.modules.store.entity.StoreArea;

/**
 * 生成store地址后台Service
 * @author whh
 * @version 2017-09-06
 */
@Service
@Transactional(readOnly = true)
public class StoreAreaService extends CrudService<StoreAreaDao, StoreArea> {
		
	/*
	 * 通过含storeId的list获取StoreArea的list
	 */
	public List<StoreArea> findStoreAreaListByIdList(List<String> list){
		return dao.findStoreAreaListByIdList(list);
	}
	/*
	 * 通过StoreId获取StroreArea
	 */
	public StoreArea getStoreAreaByStoreId(String storeId){
		return dao.getStoreAreaByStoreId(storeId);
	}
	
	public StoreArea get(String id) {
		return super.get(id);
	}
	
	public List<StoreArea> findList(StoreArea storeArea) {
		return super.findList(storeArea);
	}
	
	public Page<StoreArea> findPage(Page<StoreArea> page, StoreArea storeArea) {
		return super.findPage(page, storeArea);
	}
	
	@Transactional(readOnly = false)
	public void save(StoreArea storeArea) {
		super.save(storeArea);
	}
	
	@Transactional(readOnly = false)
	public void delete(StoreArea storeArea) {
		super.delete(storeArea);
	}
	
}